#include <stdlib.h>
#include "unity.h"
#include "drv_common_def.h"
#include "dev_common.h"

void setUp(void)
{
    printf("============================\n");
}

void tearDown(void)
{
}

void test_demo01(void)
{
    for (int i = 0; i < 2; i++) {
        HAL_GPIO_TogglePin(GPIOC, GPIO_PIN_13);
        Delay_ms(1000);
    }
    Delay_ms(3000);
    TEST_ASSERT_EQUAL(12, 12);
}

ABS_USED
ABS_CONSTRUCTOR(180)
void unity_main(void)
{
    UnityBegin("Unit Testing");
    RUN_TEST(test_demo01);
    UnityEnd();
    printf("============================\n");
    exit(0);
}